
from django.conf.urls import url
from . import views

urlpatterns = [
<<<<<<< HEAD
    # url(r'^/$', views.aa.as_view()),
]
=======
    # # 获取所有标签列表
    # url(r'^labels/$', views.LabelsView.as_view()),
    # # 用户关注的标签
    # url(r'^labels/users/$', views.LabelsUsersView.as_view()),

]

from rest_framework.routers import DefaultRouter
router = DefaultRouter()

# 标签
router.register(r'labels', views.LabelsViewSet)
# 问答相关
router.register(r'questions', views.QuestionViewSet)
# 回答问题
router.register(r'reply', views.ReplyViewSet)

urlpatterns += router.urls
>>>>>>> 包克
